package com.Maykk.Demo09;

/**
 * @ClassName: Customer
 * @Description: TODO 消费者线程类
 * @Author: MaykkStar@163.com
 */
public class Customer implements Runnable {
    private Box box;

    public Customer(Box box) {
        this.box = box;
    }

    @Override
    public void run() {
        while (true)
            box.get();
    }
}
